﻿using AlibabaCloud.SDK.Dysmsapi20170525.Models;
using furion.blog.Domain.Shared.Dto.Sms;
using MongoDB.Entities;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Domain.Mongo
{
    [Collection("ali_sms_send_log")]
    public class AliSmsSendLog : MongoBaseModel
    {
        [Field(fieldName: "phone")]
        public string Phone { get; set; } = string.Empty;

        /// <summary>
        /// 请求信息
        /// </summary>
        [Field(fieldName: "request")]
        public SmsSendDto? Request { get; set; } = null;


        /// <summary>
        /// 请求信息
        /// </summary>
        [Field(fieldName: "response")]
        public SendSmsResponse? Response { get; set; } = null;

        /// <summary>
        /// 发送结果 (Success Or Fail)
        /// </summary>
        [Field(fieldName: "result")]
        public string Result { get; set; } = string.Empty;

    }
}
